package com.yanqu.road.entity.drugstore;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_drug_land", desc = "农田")
public class UserDrugLandData extends DataObject {

    @FieldTypeAnnotation(update = true, select = true, desc = "玩家")
    private long userId;

    @FieldTypeAnnotation(update = true, desc = "编号")
    private int landId;

    @FieldTypeAnnotation(desc = "药材id")
    private int drugId;

    @FieldTypeAnnotation(desc = "状态，0：空闲；1：种植中；2：已成熟；")
    private int state;

    @FieldTypeAnnotation(desc = "种植时间")
    private long plantTime;

    @FieldTypeAnnotation(desc = "成熟时间")
    private long matureTime;

    @FieldTypeAnnotation(desc = "最后成熟时间")
    private long lastMatureTime;

    @FieldTypeAnnotation(desc = "种植id")
    private long planId;

    @FieldTypeAnnotation(desc = "订单编号")
    private long orderNo;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getLandId() {
        return landId;
    }

    public void setLandId(int landId) {
        if(this.landId != landId) {
            this.landId = landId;
            setUpdateOption();
        }
    }

    public int getDrugId() {
        return drugId;
    }

    public void setDrugId(int drugId) {
        if(this.drugId != drugId) {
            this.drugId = drugId;
            setUpdateOption();
        }
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        if(this.state != state) {
            this.state = state;
            setUpdateOption();
        }
    }

    public long getPlantTime() {
        return plantTime;
    }

    public void setPlantTime(long plantTime) {
        if(this.plantTime != plantTime) {
            this.plantTime = plantTime;
            setUpdateOption();
        }
    }

    public long getMatureTime() {
        return matureTime;
    }

    public void setMatureTime(long matureTime) {
        if(this.matureTime != matureTime) {
            this.matureTime = matureTime;
            setUpdateOption();
        }
    }

    public long getLastMatureTime() {
        return lastMatureTime;
    }

    public void setLastMatureTime(long lastMatureTime) {
        if(this.lastMatureTime != lastMatureTime) {
            this.lastMatureTime = lastMatureTime;
            setUpdateOption();
        }
    }

    public long getPlanId() {
        return planId;
    }

    public void setPlanId(long planId) {
        if(this.planId != planId) {
            this.planId = planId;
            setUpdateOption();
        }
    }

    public long getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(long orderNo) {
        if(this.orderNo != orderNo) {
            this.orderNo = orderNo;
            setUpdateOption();
        }
    }
}
